<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <my-component-li v-for="item in items" v-bind:item="item"></my-component-li>
    </div>
    <script>
        Vue.component("my-component-li",
            {
                props:['item'],
                template:"<li>{{item}}</li>"
            }
        )
        var vm=new Vue({
            el:"#app",
            data:{
                items:["张三","李四","王二麻子"]
            }
        });
    </script>
</body>
</html>